package com.sun.dream.fish.vo.back;

import com.sun.dream.fish.entity.TUserEntity;
import com.sun.dream.fish.mapstruct.UserMapBasic;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Description:  用户登录信息
 * Created By ljl on 2023/12/11.
 */
@Data
@NoArgsConstructor
public class LoginUserVO {

    private UserVO user;

    private String token;

    public LoginUserVO(String token, UserVO userVO) {
        this.user = userVO;
        this.token = token;
    }

    public LoginUserVO(String token, TUserEntity userEntity) {
        this.user = UserMapBasic.INSTANCE.entityToVO(userEntity);
        this.token = token;
    }
}
